@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/cabinet/cabinet_add.js"]}){
<form id="cabinetAddForm" lay-filter="cabinetAddForm" class="layui-form model-form">
    <input name="userId" type="hidden"/>
    <div class="layui-form-item">
        <label class="layui-form-label">机柜编号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="cabinetId" placeholder="请输入机柜编号" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">所属账号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="birthday" name="useAccount" placeholder="请输入所属账号" type="text" class="layui-input" lay-verify="required" required value="${account}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">设备号<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="cabinetName" placeholder="请输入设备号" type="text" class="layui-input" lay-verify="required" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">IP地址</label>
        <div class="layui-input-block">
            <input name="ip" placeholder="请输入IP地址" type="text" class="layui-input" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">详细地址</label>
        <div class="layui-input-block">
            <input name="address" placeholder="请输入放置机柜的详细地址" type="text" class="layui-input" required/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">经度</label>
        <div class="layui-input-block">
            <input name="longitude" placeholder="请输入经度" type="text" class="layui-input" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">纬度</label>
        <div class="layui-input-block">
            <input name="latitude" placeholder="请输入纬度" type="text" class="layui-input" />
        </div>
    </div>
    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
